﻿using NicoView.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using NicoView.Model.Platform.Speachers.Bouyomichan;

namespace NicoView.View
{
    /// <summary>
    /// BouyomichanPathRequestWindow.xaml の相互作用ロジック
    /// </summary>
    public partial class BouyomichanPathRequestWindow : Window
    {
        public BouyomichanPathRequestWindow()
        {
            InitializeComponent();
        }

        public new NicoViewBouyomichanPathRequestViewModel DataContext
        {
            get
            {
                return (NicoViewBouyomichanPathRequestViewModel)base.DataContext;
            }
        }

        public static void Show(GetBouyomichanPathEventArgs e,Window baseWindow)
        {
            BouyomichanPathRequestWindow window = new BouyomichanPathRequestWindow();
            window.Owner = baseWindow;
            window.Show();
             
        }

        private void OkButton_Click(object sender, RoutedEventArgs e)
        {
            this.DataContext.PathSetExecute.Execute(this.InputControl.PathInputBox.Text);
            this.Close();
            
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            
            this.Close();
        }


    }


}
